<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_order_distributors.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/Small_order_distributors.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '分销订单',
        name: 'Small_order_distributors',
        url: '/Small_order_distributors/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { goods_name: '', name: '', commissionStatus: '', ordertime: '', order_number: '' },
      searchFormOptions: [
        [
          { title: '分销订单号', field: 'order_number', type: 'like', colSize: 4 },
          { title: '商品名称', field: 'goods_name', type: 'like', colSize: 4 },
          { title: '用户名称', field: 'name', type: 'like', colSize: 4 },
          { title: '下单时间', field: 'ordertime', type: 'datetime', colSize: 4 },
          { dataKey: 'commission_settlement', data: [], title: '佣金结算状态', field: 'commissionStatus', type: 'select', colSize: 4 },
        ],
      ],
      columns: [
        { field: 'order_number', title: '分销订单号', type: 'string', width: 190, align: 'left' },
        { field: 'distributorCode', title: '分销商编码', type: 'string', width: 120, align: 'left', bind: { key: 'distributorList', data: [] } },
        // { field: 'pic_path', title: '商品图片', type: 'img', width: 180, align: 'left' },
        { field: 'goods_name', title: '商品名称', type: 'string', width: 200, align: 'left' },
        { field: 'price', title: '商品单价', type: 'decimal', width: 90, align: 'left' },
        { field: 'name', title: '下单用户', type: 'string', width: 120, align: 'left' },
         {field:'level_commission_price',title:'等级分销佣金金额',type:'string',width:150,align:'left'},
        { field: 'good_commission_price', title: '商品分销佣金金额', type: 'decimal', width: 150, align: 'left', sortable: true },
        { field: 'subservantPone', title: '分佣用户手机', type: 'string', width: 110, align: 'left' },
        //    {field:'commissionStatus',title:'佣金结算状态',type:'int',width:120,align:'left'},
        //    {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
        //    {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
        //    {field:'creator',title:'创建人名称',type:'string',width:180,align:'left'},
        //    {field:'distributorCode',title:'分销商编码',type:'string',width:220,align:'left'},
        //   {field:'extensionPhone',title:'推广分销用户手机',type:'string',width:180,align:'left'},
        //    {field:'goods_id',title:'商品id',type:'string',width:90,align:'left'},

        //    {field:'id',title:'id',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
        //    {field:'modifier',title:'修改人名称',type:'string',width:180,align:'left'},
        //    {field:'modifierID',title:'修改人id',type:'int',width:90,align:'left'},
        //    {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
        { field: 'ordertime', title: '下单时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        //    {field:'phone',title:'电话',type:'string',width:90,align:'left'},

        //    {field:'settlement_price',title:'结算单价',type:'decimal',width:90,align:'left'},
        //    {field:'settlement_total_fee',title:'结算总价',type:'decimal',width:90,align:'left'},
        //    {field:'total_fee',title:'商品总金额',type:'decimal',width:90,align:'left'}
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
